import request from '@/utils/request'

export function getSuppliers(params) {
  return request({
    url: '/basicdata/supplier/',
    method: 'get',
    params
  })
}

export function createSuppliers(data) {
  return request({
    url: '/basicdata/supplier/',
    method: 'post',
    data
  })
}

export function updateSuppliers(id, data) {
  return request({
    url: `/basicdata/supplier/${id}/`,
    method: 'put',
    data
  })
}

export function deleteSuppliers(id) {
  return request({
    url: `/basicdata/supplier/${id}/`,
    method: 'delete'
  })
}

